package com.xiaomi.eco.dal.query;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class PageResult<T> {
    private long total;
    private T list;


    public static <T> PageResult<T> success(long total, T list) {
        return new PageResult<>(total, list);
    }
}
